package robots;

import maze.Coordinate;
import maze.Location;
import maze.Maze;

public class Pacman extends Robot {
	
	private Location location;
	
	public Pacman(){
		super();
		this.location = new Location(20, 20);
	}
	
	@Override
	public void setCoordinate(Coordinate co) {
		this.co = co;
		this.location = coordinateToLocation(co);
		
	}
	
	public Location getLocation(){
		return location;
	}
	
	public void setLocation(Location location){
		this.location = location;
		this.co = new Maze(0).getCoordinateOfLocation(location);
	}
	
}
